import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import _home from './api/home.js'
import _goods from './api/goods.js'
import _buyer from './api/buyer.js'
import _user from './api/user.js'
import _merchant from './api/merchant.js'


Vue.config.productionTip = false


import './assets/styles/common.less'
import './utils/rem'

// SVG
import '@/assets/icons'
import SvgIcon from '@/components/svgicon/Index.vue'
Vue.component('svg-icon', SvgIcon)

import Vant, { Lazyload } from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);
Vue.use(Lazyload) // 懒加载

Vue.prototype.$home = _home;
Vue.prototype.$goods = _goods;
Vue.prototype.$buyer = _buyer;
Vue.prototype.$user = _user;
Vue.prototype.$merchant = _merchant;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
